package com.cssy.xxkj.logic.dao.impl;

import java.util.List;
import java.util.Map;

import org.springframework.dao.DataAccessException;
import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

import com.cssy.xxkj.logic.dao.LogicProductionCancelDAO;
import com.cssy.xxkj.logic.entity.LogicProductionDispatchingDetailCancelDO;
import com.cssy.xxkj.logic.entity.LogicProductionDispatchingDetailCancelItemDO;
import com.cssy.xxkj.logic.entity.LogicProductionDispatchingDetailItemDO;
import com.plat.helper.SearchConditions;

public class LogicProductionCancelDAOImpl extends SqlMapClientDaoSupport
		implements LogicProductionCancelDAO {
	
	@Override
	public String insertLogicProductionDispatchingCancelDO(
			LogicProductionDispatchingDetailCancelDO logicProductionDispatchingDetailCancelDO) {
		Object id = getSqlMapClientTemplate().insert("LogicProductionDispatchingDetailCancel.insert", logicProductionDispatchingDetailCancelDO);
        return (String) id;
	}

	@Override
	public Integer updateLogicProductionDispatchingCancelDO(
			LogicProductionDispatchingDetailCancelDO logicProductionDispatchingDetailCancelDO) {
		int result = getSqlMapClientTemplate().update("LogicProductionDispatchingDetailCancel.update", logicProductionDispatchingDetailCancelDO);
        return result;
	}
	
	
	@Override
	public List<LogicProductionDispatchingDetailCancelItemDO> findListByMap(
			Map<String, Object> paramMap) {
		List<LogicProductionDispatchingDetailCancelItemDO> itemList = getSqlMapClientTemplate().queryForList("LogicProductionDispatchingDetailCancelItem_ex.findListByMap", paramMap);
		return itemList; 
	}
	
	
	@Override
	public List<LogicProductionDispatchingDetailCancelDO> find(
			SearchConditions scs) throws DataAccessException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Integer count(SearchConditions scs) throws DataAccessException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Integer deleteBizRemoved(String id) throws DataAccessException {
		// TODO Auto-generated method stub
		return null;
	}

}
